package com.telecom.util;

import java.io.InputStream;

public class SqlSessionFactoryBuilder {
    public SqlSessionFactory build(InputStream in)  {
        try {
            DbProfile profile = XMLParser.parseXml(in);
            return new CustomSqlSessionFactory(profile);
        }catch (Exception e){
            throw new RuntimeException(e);
        }
    }
}
